package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * The interface Shopping cart service.
 */
public interface ShoppingCartService {

    /**
     * 添加购物车接口
     *
     * @param shoppingCartDTO the shopping cart dto
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);


    /**
     * 查看购物车中的菜品或套餐
     *
     * @return the list
     */
    List<ShoppingCart> getList();


    /**
     * 删除购物车中的菜品或套餐
     */
    void delete();


    /**
     * 删除购物车中一个商品
     * @param shoppingCartDTO
     */
    void deleteByCondition(ShoppingCartDTO shoppingCartDTO);
}

